package com.lovo.service.impl;

import com.lovo.dao.FactoryDAO;
import com.lovo.model.FactoryDO;
import com.lovo.service.FactoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title
 * @author: luo
 * @date: 2020/11/19 11:34
 */
@Service
public class FactoryServiceImpl implements FactoryService {
    @Resource
    private FactoryDAO factoryDAO;

    @Override
    public List<FactoryDO> findAll() {
        return factoryDAO.findAll();
    }

    @Override
    public void delete(FactoryDO factoryDO) {
        factoryDAO.delete(factoryDO);
    }

    @Override
    public void save(FactoryDO factoryDO) {
        factoryDAO.save(factoryDO);
    }

    @Override
    public void update(FactoryDO factoryDO) {

    }
}
